Optimal. Leaf size=106 \[ -\frac {a^2 \sqrt {c+d x^2}}{4 c x^4}-\frac {a (8 b c-3 a d) \sqrt {c+d x^2}}{8 c^2 x^2}-\frac {\left (8 b^2 c^2-8 a b c d+3 a^2 d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{8 c^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {457, 91, 79, 65,
214} \begin {gather*} -\frac {\left (3 a^2 d^2-8 a b c d+8 b^2 c^2\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{8 c^{5/2}}-\frac {a^2 \sqrt {c+d x^2}}{4 c x^4}-\frac {a \sqrt {c+d x^2} (8 b c-3 a d)}{8 c^2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 79
Rule 91
Rule 214
Rule 457
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2}{x^5 \sqrt {c+d x^2}} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(a+b x)^2}{x^3 \sqrt {c+d x}} \, dx,x,x^2\right )\\ &=-\frac {a^2 \sqrt {c+d x^2}}{4 c x^4}+\frac {\text {Subst}\left (\int \frac {\frac {1}{2} a (8 b c-3 a d)+2 b^2 c x}{x^2 \sqrt {c+d x}} \, dx,x,x^2\right )}{4 c}\\ &=-\frac {a^2 \sqrt {c+d x^2}}{4 c x^4}-\frac {a (8 b c-3 a d) \sqrt {c+d x^2}}{8 c^2 x^2}+\frac {1}{16} \left (8 b^2-\frac {a d (8 b c-3 a d)}{c^2}\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {c+d x}} \, dx,x,x^2\right )\\ &=-\frac {a^2 \sqrt {c+d x^2}}{4 c x^4}-\frac {a (8 b c-3 a d) \sqrt {c+d x^2}}{8 c^2 x^2}+\frac {\left (8 b^2-\frac {a d (8 b c-3 a d)}{c^2}\right ) \text {Subst}\left (\int \frac {1}{-\frac {c}{d}+\frac {x^2}{d}} \, dx,x,\sqrt {c+d x^2}\right )}{8 d}\\ &=-\frac {a^2 \sqrt {c+d x^2}}{4 c x^4}-\frac {a (8 b c-3 a d) \sqrt {c+d x^2}}{8 c^2 x^2}-\frac {\left (8 b^2 c^2-8 a b c d+3 a^2 d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{8 c^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 92, normalized size = 0.87 \begin {gather*} -\frac {a \sqrt {c+d x^2} \left (2 a c+8 b c x^2-3 a d x^2\right )}{8 c^2 x^4}+\frac {\left (-8 b^2 c^2+8 a b c d-3 a^2 d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{8 c^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 159, normalized size = 1.50
method | result | size |
risch | \(-\frac {\sqrt {d \,x^{2}+c}\, a \left (-3 a d \,x^{2}+8 c \,x^{2} b +2 a c \right )}{8 c^{2} x^{4}}-\frac {3 \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right ) a^{2} d^{2}}{8 c^{\frac {5}{2}}}+\frac {\ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right ) a b d}{c^{\frac {3}{2}}}-\frac {b^{2} \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right )}{\sqrt {c}}\) | \(134\) |
default | \(a^{2} \left (-\frac {\sqrt {d \,x^{2}+c}}{4 c \,x^{4}}-\frac {3 d \left (-\frac {\sqrt {d \,x^{2}+c}}{2 c \,x^{2}}+\frac {d \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right )}{2 c^{\frac {3}{2}}}\right )}{4 c}\right )+2 a b \left (-\frac {\sqrt {d \,x^{2}+c}}{2 c \,x^{2}}+\frac {d \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right )}{2 c^{\frac {3}{2}}}\right )-\frac {b^{2} \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right )}{\sqrt {c}}\) | \(159\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 123, normalized size = 1.16 \begin {gather*} -\frac {b^{2} \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{\sqrt {c}} + \frac {a b d \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{c^{\frac {3}{2}}} - \frac {3 \, a^{2} d^{2} \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{8 \, c^{\frac {5}{2}}} - \frac {\sqrt {d x^{2} + c} a b}{c x^{2}} + \frac {3 \, \sqrt {d x^{2} + c} a^{2} d}{8 \, c^{2} x^{2}} - \frac {\sqrt {d x^{2} + c} a^{2}}{4 \, c x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.64, size = 204, normalized size = 1.92 \begin {gather*} \left [\frac {{\left (8 \, b^{2} c^{2} - 8 \, a b c d + 3 \, a^{2} d^{2}\right )} \sqrt {c} x^{4} \log \left (-\frac {d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {c} + 2 \, c}{x^{2}}\right ) - 2 \, {\left (2 \, a^{2} c^{2} + {\left (8 \, a b c^{2} - 3 \, a^{2} c d\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{16 \, c^{3} x^{4}}, \frac {{\left (8 \, b^{2} c^{2} - 8 \, a b c d + 3 \, a^{2} d^{2}\right )} \sqrt {-c} x^{4} \arctan \left (\frac {\sqrt {-c}}{\sqrt {d x^{2} + c}}\right ) - {\left (2 \, a^{2} c^{2} + {\left (8 \, a b c^{2} - 3 \, a^{2} c d\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{8 \, c^{3} x^{4}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 74.23, size = 178, normalized size = 1.68 \begin {gather*} - \frac {a^{2}}{4 \sqrt {d} x^{5} \sqrt {\frac {c}{d x^{2}} + 1}} + \frac {a^{2} \sqrt {d}}{8 c x^{3} \sqrt {\frac {c}{d x^{2}} + 1}} + \frac {3 a^{2} d^{\frac {3}{2}}}{8 c^{2} x \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {3 a^{2} d^{2} \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{8 c^{\frac {5}{2}}} - \frac {a b \sqrt {d} \sqrt {\frac {c}{d x^{2}} + 1}}{c x} + \frac {a b d \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{c^{\frac {3}{2}}} - \frac {b^{2} \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{\sqrt {c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.79, size = 140, normalized size = 1.32 \begin {gather*} \frac {\frac {{\left (8 \, b^{2} c^{2} d - 8 \, a b c d^{2} + 3 \, a^{2} d^{3}\right )} \arctan \left (\frac {\sqrt {d x^{2} + c}}{\sqrt {-c}}\right )}{\sqrt {-c} c^{2}} - \frac {8 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} a b c d^{2} - 8 \, \sqrt {d x^{2} + c} a b c^{2} d^{2} - 3 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} a^{2} d^{3} + 5 \, \sqrt {d x^{2} + c} a^{2} c d^{3}}{c^{2} d^{2} x^{4}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.51, size = 129, normalized size = 1.22 \begin {gather*} -\frac {\frac {\left (5\,a^2\,d^2-8\,a\,b\,c\,d\right )\,\sqrt {d\,x^2+c}}{8\,c}-\frac {\left (3\,a^2\,d^2-8\,a\,b\,c\,d\right )\,{\left (d\,x^2+c\right )}^{3/2}}{8\,c^2}}{{\left (d\,x^2+c\right )}^2-2\,c\,\left (d\,x^2+c\right )+c^2}-\frac {\mathrm {atanh}\left (\frac {\sqrt {d\,x^2+c}}{\sqrt {c}}\right )\,\left (3\,a^2\,d^2-8\,a\,b\,c\,d+8\,b^2\,c^2\right )}{8\,c^{5/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________